package com.yonyou.brigade.ybz.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author duhqh@yonyou.com
 * @since 2018-10-20
 */
@TableName("bri_order_note")
public class BriOrderNote extends Model<BriOrderNote> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单编号
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 记事Pk
     */
    @TableField("note_pk")
    private String notePk;
    /**
     * 记事类型
     */
    @TableField("note_type")
    private String noteType;
    /**
     * 订单类型
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 记事状态
     */
    @TableField("note_state")
    private int noteState;

    /**
     * 单据pk
     */
    @TableField("voucher_pk")
    private String voucherPk;

    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getNotePk() {
        return notePk;
    }

    public void setNotePk(String notePk) {
        this.notePk = notePk;
    }

    public String getNoteType() {
        return noteType;
    }

    public void setNoteType(String noteType) {
        this.noteType = noteType;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public int getNoteState() {
        return noteState;
    }

    public void setNoteState(int noteState) {
        this.noteState = noteState;
    }

    public String getVoucherPk() {
        return voucherPk;
    }

    public void setVoucherPk(String voucherPk) {
        this.voucherPk = voucherPk;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ORDER_ID = "order_id";

    public static final String NOTE_PK = "note_pk";

    public static final String NOTE_TYPE = "note_type";

    public static final String ORDER_TYPE = "order_type";

    public static final String NOTE_STATE="note_state";

    public static final String VOUCHER_PK="voucher_pk";

    public static final String TS = "ts";

    public static final String FLIGHT_ORDER = "flight_order";

    public static final String HOTEL_ORDER = "hotel_order";

    public static final String BRIGADE_TRAINDO_TRADETYPE = "brigade_trainDo_tradetype";

    public static final String CAR_ORDER = "car_order";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriOrderNote{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", notePk=" + notePk +
        ", noteType=" + noteType +
        ", orderType=" + orderType +
        ",noteState"+noteState+
         "voucherPk"+voucherPk+
        ", ts=" + ts +
        "}";
    }
}
